import { RouteConfig } from "vue-router";
import ChangePrice from '@/pages/manage/changePrice.vue';
import OrderList from '@/pages/manage/orderList.vue';
import RebateList from '@/pages/manage/rebateList.vue';
import GiftRevision from '@/pages/manage/giftRevision.vue';
import { ROUTE_NAME } from "@/lib/constant";

export const routes: RouteConfig[] = [
    {
        path: '/manage/change_price',
        name: ROUTE_NAME.MANAGE_CHANGE_PRICE,
        meta: {
            title: '修改价格',
        },
        component: ChangePrice,
    },
    {
        path: '/manage/order_list',
        name: ROUTE_NAME.MANAGE_ORDER_LIST,
        meta: {
            title: '订单明细',
        },
        component: OrderList,
    },
    {
        path: '/manage/rebate_list',
        name: ROUTE_NAME.MANAGE_REBATE_LIST,
        meta: {
            title: '奖励明细',
        },
        component: RebateList,
    },
    {
        path: '/manage/gift_revision',
        name: ROUTE_NAME.MANAGE_GIFT_REVISION,
        meta: {
            title: '选择赠送产品',
        },
        component: GiftRevision,
    },
];
